home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 103
/
Vol 103.iso
/
games
/
screamin.swf
/
scripts
/
DefineSprite_184
/
frame_1
/
PlaceObject3_75_63
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2010-03-13
|
762b
|
28 lines
onClipEvent(enterFrame){
if(_root.level > 2)
{
if(_Y > 275)
{
this.gotoAndstop(1);
}
if(_Y >= occurrence)
{
var occurrence = Math.round(Math.random() * frequency) + 300;
var xPos = -110 + Math.round(Math.random() * xPosVara);
_Y = startPos;
_X = xPos;
_root.bigCar3Speed = 12;
hitObject = "on";
}
else if(_Y <= occurrence * -1)
{
var occurrence = Math.round(Math.random() * frequency) + 300;
var xPos = -110 + Math.round(Math.random() * xPosVara);
_Y = startPos * -1;
_X = xPos;
hitObject = "on";
}
_Y = _Y + (- _root.bigCar3Speed) + _root.busSpeed / 2;
}
}